package com.xjd.edu.admin.service.sys;

import com.xjd.edu.common.admin.domain.SysOperLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * 异步调用日志服务
 *
 * @author ruoyi
 */
@Service
public class AsyncLogService {

    @Autowired
    private ISysOperLogService operLogService;

    /**
     * 保存系统日志记录
     */
    @Async("asyncServiceExecutor")
    public void saveSysLog(SysOperLog sysOperLog) throws Exception {
        operLogService.insertOperlog(sysOperLog);
    }
}
